<?php

namespace plugin\wechat\app\validate;

use app\common\validate\Common;

class MpTemplatemsgTask extends Common
{
    public function __construct()
    {
        parent::__construct();
    }

    protected $rule = [
        'title'  =>  'require|max:50',
        'templatemsg_id' => 'require|min:1'
    ];

    //错误消息
    protected $message  =   [
        'title' => '请填写50字内的任务名称',
        'templatemsg_id' => '请选择发送的消息',
    ];
}